package com.p2p.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Api(value = "借款标类别")
public class ShelfType {
@ApiModelProperty(name = "id",notes = "id",dataType = "Long",required = false)
@TableId(type = IdType.ASSIGN_ID)
private Long id;
@ApiModelProperty(name = "typeName",notes = "借款标分类名",dataType = "String",required = false)
private String typeName;
@ApiModelProperty(name = "sort",notes = "排序",dataType = "Integer",required = false)
private Integer sort;
@ApiModelProperty(name = "status",notes = "状态（0正常，1禁用）",dataType = "Byte",required = false)
private Byte status;
@ApiModelProperty(name = "createTime",notes = "创建时间",dataType = "Timestamp",required = false)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
private Timestamp createTime;
@ApiModelProperty(name = "updateTime",notes = "更新时间",dataType = "Timestamp",required = false)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
private Timestamp updateTime;
@ApiModelProperty(name = "isDeleted",notes = "是否删除(0否，1是)",dataType = "Byte",required = false)
@TableLogic
private Byte isDeleted;
}
